package com.gupt.weekly.dto;

import com.gupt.weekly.domain.Report;
import com.gupt.weekly.domain.ReportContent;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * @author linzizun
 * @version 1.0
 * @date 2021/04/13 01:28
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "周报完整内容")
public class ReportAndContents {
    @Valid
    @NotBlank(message = "周报不能为空")
    @ApiModelProperty(value = "周报实体", example = "")
    private Report report;

    @Valid
    @ApiModelProperty(value = "周报内容项列表", example = "")
    private List<ReportContent> reportContentList;
}
